package com.lanchetech.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.util.Date;

import lombok.Data;

/**
 * 消费流水记录
 */
@ApiModel(value = "com-lanchetech-entity-UserAmtLog")
@Data
public class UserAmtLog {

    private Long id;

    /**
     * 用户
     */
    private Long userId;

    /**
     * 扣除金额
     */
    @ApiModelProperty(value = "扣除金额")
    private BigDecimal amt;

    /**
     * 变动前金额
     */
    @ApiModelProperty(value = "变动前金额")
    private BigDecimal beforeAmt;

    /**
     * 变动后金额
     */
    @ApiModelProperty(value = "变动后金额")
    private BigDecimal afterAmt;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date created;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 类型(1:消费金)
     */
    @ApiModelProperty(value = "类型(1:收入 2:支出)")
    private Byte type;

    private static final long serialVersionUID = 1L;
}